package com.vint.leetcode;

import java.util.List;

/*
 * 1. done
 * 3.
 */
public class Leetcode93 {
    public List<String> restoreIpAddresses(String s) {
    	return null;

    }
    public boolean addHelp(StringBuffer sb, String s, int le, int cnt){
    	if(cnt==0) return true;
        for(int i = 1; i <= 3; i++) {
        	if(le+i>=s.length())break;
            int ip = Integer.parseInt(s.substring(le + i, s.length()));
            if(ip>255){
            	break;
            }
            sb.append(".").append(ip);
        }
        return true;
    }
}


